package org.dromara.mall.domain;

import org.dromara.common.mybatis.core.domain.BaseEntity;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;

/**
 * 购物车对象 ter_mall_cart
 *
 * @author xch
 * @date 2025-06-27
 */
@Data
@TableName("ter_mall_cart")
public class TerMallCart  {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     *
     */
    @TableId(value = "id")
    private Long id;

    /**
     * 用户ID
     */
    private Long userId;

    /**
     * 商品ID
     */
    private Long productId;

    /**
     * 数量
     */
    private Integer quantity;

    /**
     * 是否选中(0=否,1=是)
     */
    private Integer selected;


}
